﻿namespace TfsReports.Web.Models
{
    /// <summary>
    /// ChangeTotal
    /// </summary>
    public class ChangeTotal
    {
        /// <summary>
        /// Gets or sets the lines added.
        /// </summary>
        /// <value>The lines added.</value>
        public int LinesAdded { get; set; }

        /// <summary>
        /// Gets or sets the lines modified.
        /// </summary>
        /// <value>The lines modified.</value>
        public int LinesModified { get; set; }

        /// <summary>
        /// Gets or sets the lines deleted.
        /// </summary>
        /// <value>The lines deleted.</value>
        public int LinesDeleted { get; set; }

        /// <summary>
        /// Gets or sets the commits.
        /// </summary>
        /// <value>The commits.</value>
        public int Commits { get; set; }

        /// <summary>
        /// Gets the churn.
        /// </summary>
        /// <value>The churn.</value>
        public int Churn { get { return LinesAdded + LinesModified + LinesDeleted; } }
    }
}
